Computational astrophysics